<template>
    <fieldset>
        <legend>parent</legend>
        负组件
        <h1> {{msg}} </h1>
        <Child @receive="get" ></Child>
        <Bro></Bro>
    </fieldset>
</template>

<script>
import Child from "./Child.vue"
import Bro from './brother.vue'
    export default{
        methods:{
            get(input){
                this.msg=input
            }
        },
        data(){
            return{
                msg:"sfsdaf",
                arr:[1,2,3],
                gift:"从入门到删库"
            }
        },
        components:{
            Child,
            Bro
        }
    }
</script>